local zhenaideyongbao = fk.CreateSkill{
    name = "ym2__zhenaideyongbao",
}
Fk:loadTranslationTable{
    ["ym2__zhenaideyongbao"] = "珍爱的拥抱",
    [":ym2__zhenaideyongbao"] = "当你使用手牌后，若此牌未造成伤害，你可以视为对此牌目标使用【推心置腹】或【以逸待劳】。",

    ["$ym2__zhenaideyongbao1"] = "草",
    ["$ym2__zhenaideyongbao2"] = "你好你好",
}
zhenaideyongbao:addEffect(fk.CardUseFinished,{
    can_trigger = function (self, event, target, player, data)
        if player:hasSkill(zhenaideyongbao.name) and target == player and data and not data.damageDealt then
            return data:isUsingHandcard(player)
        end
    end,
    on_cost = function (self, event, target, player, data)
        local room = player.room
        local choices = {}
        for _, card_name in ipairs({"ym__sincere_treat","await_exhausted"}) do
            local card = Fk:cloneCard(card_name)
            for _, cp in ipairs(data.tos) do
                if not cp.dead and player:canUseTo(card,cp) then
                    table.insertIfNeed(choices,card_name)
                    if #choices == 2 then
                        break
                    end
                end
            end
        end
        if #choices > 0 then
            table.insert(choices,"Cancel")
            local choice = room:askToChoice(player,{
                choices = choices,
                prompt = "",
                skill_name = zhenaideyongbao.name
            })
            if choice ~= "Cancel" then
                event:setCostData(self,choice)
                return true
            end
        end
    end,
    on_use = function (self, event, target, player, data)
        local room = player.room
        local card = Fk:cloneCard(event:getCostData(self))
        local targets = {}
        for _, cp in ipairs(data.tos) do
            if not cp.dead and player:canUseTo(card,cp) then
                table.insertIfNeed(targets,cp)
            end
        end
        room:useCard({
            card = card,
            from = player,
            tos = targets,
        })
    end,
})
return zhenaideyongbao